var section = {
	init : function(){
		structure.setCurrentSection(0);
		
		$.each($('.admin .box-home'), function(i, el){
			$(el)
				.append( $('<div/>').addClass('tl') )
				.append( $('<div/>').addClass('tr') )
				.append( $('<div/>').addClass('bl') )
				.append( $('<div/>').addClass('br') );
		});	

		$.each($('.admin .nav-purple'), function(i, el){
			$(el)
				.wrapInner('<span/>').find('span')
				.append( $('<div/>').addClass('l') )
				.append( $('<div/>').addClass('r') );
		});	

		$.each($('.admin .nav-light'), function(i, el){
			$(el)
				.wrapInner('<span/>').find('span')
				.append( $('<div/>').addClass('l') )
				.append( $('<div/>').addClass('r') );
		});	

		$('.box-tutorial')
			.append($('<div/>').addClass('t-l'))
			.append($('<div/>').addClass('t-r'))
			.append($('<div/>').addClass('b-l'))
			.append($('<div/>').addClass('b-r'));

		$('.progress-bar')
			.append($('<div/>').addClass('l'))
			.append($('<div/>').addClass('r'))
			.find('span:eq(0)')
				.wrapInner($('<div/>').addClass('m'))
				.append($('<div/>').addClass('l'))
				.append($('<div/>').addClass('r'));

		$('.admin .box-home .inner h6')
			.append($('<span/>').addClass('l'))
			.append($('<span/>').addClass('r'));

		$('.admin .box-home .subtitle')
			.append($('<span/>').addClass('l'))
			.append($('<span/>').addClass('r'));

		$('.admin .box-your-products .safety-stock li:eq(5)').addClass('last-line')	
		$('.admin .box-your-products .safety-stock li:eq(11)').addClass('last-line')	

		/*
		var boxProducts = $('.admin .box-your-products dl');
		var boxReports = $('.admin .box-commission-reports dl');

		if(boxProducts.height() > boxReports.height()){
			boxReports.height(boxProducts.height());
		}else{
			boxProducts.height(boxReports.height());
		};

		var boxStock = $('.admin .box-safety-stock dl');
		var boxAlerts = $('.admin .box-alerts-ml dl');

		if(boxStock.height() > boxAlerts.height()){
			boxAlerts.height(boxStock.height());
		}else{
			boxStock.height(boxAlerts.height());
		};
		*/
	}
};

$(document).ready(section.init);